const express = require("express");
// const tokeVerify =require('../middleware/token') //token校验
const userApi = require("./user");
const reposApi = require("./repos");
const teamsApi = require("./teams");
const codeCountApi = require("./codeCount");
const filterRulerApi = require("./filterRuler");

//创建一个路由容器，所有请求都是`/v1/app`前缀
const router = express.Router();
// router.use('/v1/app',userApi,tokeVerify,reposApi,teamsApi) //tokeVerify中间件之后的都要校验token
router.use(
  "/v1/app",
  userApi,
  reposApi,
  teamsApi,
  codeCountApi,
  filterRulerApi
);

module.exports = router;
